
package com.medical.mapper;

import com.medical.entity.RegistrationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface RegistrationMapper {
    // 新增基础CRUD方法
    RegistrationEntity selectById(Integer reId);
    int updateById(RegistrationEntity entity);
    
    // 状态更新方法
    void updateStatus(@Param("reId") Integer reId, 
                     @Param("status") String status,
                     @Param("score") Integer score);
    
    // 新增查询所有挂号信息的SQL
    List<RegistrationEntity> selectAllRegistrations();

    List<RegistrationEntity>  getOneByUserId(Integer userId);

    void add(RegistrationEntity registrationEntity);
}
